package com.flowerSystem.service.impl;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.flowerSystem.entity.Address;
import com.flowerSystem.mapper.AddressMapper;
import com.flowerSystem.service.AddressService;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;

/**
 * <p>
 *  服务实现类
 * </p>
 *
 * @author 鲜花遇上牛战士
 * @since 2023-08-28
 */
@Service
public class AddressServiceImpl extends ServiceImpl<AddressMapper, Address> implements AddressService {
    @Resource
    AddressMapper addressMapper;
    @Override
    public List<Address> selectAllByUserId(int userId) {
        return addressMapper.selectAllByUserId(userId);
    }
}
